package ${packageNamePrefix};

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ${entityModel.packageNamePrefix}.${entityModel.className};
import ${mapperInterfaceModel.packageNamePrefix}.${mapperInterfaceModel.className};

@Service("${instanceName}")
public class ${className} <#if superClass??&&entityModel.hasPK>extends ${superClass}<${entityModel.className},${entityModel.pkField.fieldType}></#if>  
{

    @Autowired private ${mapperInterfaceModel.className} ${mapperInterfaceModel.instanceName}; 
    
    <#if mapperInterfaceModel.superClass??&&entityModel.hasPK>
    protected ${mapperInterfaceModel.superClass}<${entityModel.className}> getBaseMapper() 
    {
        return ${mapperInterfaceModel.instanceName};
    }
    </#if>
    
}
